package cn.zust.edu.dao;

import cn.zust.edu.entity.UserEntity;
import org.springframework.stereotype.Repository;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

@Repository
public class UserDao {
    @PersistenceContext
    private EntityManager em;
    public UserEntity getUser(int id){
        return em.find(UserEntity.class,5);
    }
}
